import serial
ser = serial.Serial(3,19200)
print ser.name
while 1:
    a = raw_input("Ingresar Texto: ")
    ser.write(a)
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
    a = ser.read(1).encode("hex")
    print "leido %s" % a
